package Models;

/**
 * @author morten
 */
public class Employee
{
	private static int nextId = 100;
	private int id;
    private Location location;
	private String name;
	private boolean activated = true;

	public Employee(String name, Location location)
	{
		this.edit(name, location);
        this.id = Employee.nextId;
        Employee.nextId++;
	}

	public void edit(String name, Location location)
	{
		this.setName(name);
        this.setLocation(location);
	}

	public int getId()
	{
		return id;
	}

	public Location getLocation()
    {
        return location;
    }

	public String getName()
	{
		return name;
	}

	public boolean isActivated()
	{
		return activated;
	}

	public void setActivated(boolean activated)
	{
		this.activated = activated;
	}

	public void setLocation(Location location)
	{
		this.location = location;
	}

	public void setName(String name)
	{
		this.name = name;
	}
}